package com.lwq.designpattern.structuralPatterns.decoratorPattern;

import java.awt.*;

/**
 * @author liwq
 * @description
 * @date 2021/12/2 22:04
 */
public class BenciCarDecorator extends CarDecorator {

    public BenciCarDecorator(Car decoratorCar) {
        super(decoratorCar);
    }

    @Override
    public void run() {
        decoratorCar.run();
        System.out.println("奔驰车有了大灯");
    }
}
